//
//  YBSelectPeopleOrganizationView.h
//  GongXinDangJian
//
//  Created by apple on 17/11/30.
//  Copyright © 2017年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YBPeopleInfoModel.h"


@protocol YBSelectPeopleOrganizationViewDelegate <NSObject>

-(void)ybSelectPeopleOrganizationViewSelectedArrayDidChange;

@end

@interface YBSelectPeopleOrganizationView : UIView
@property (nonatomic , strong) NSMutableArray * dataArray;

@property (nonatomic , strong) NSMutableArray * headArray;

//自定义是否隐藏
@property (nonatomic , assign) BOOL ybIsHidden;

@property (nonatomic , assign) BOOL isAddPeople;

//选中数组改变状态
@property (nonatomic , assign) BOOL ybSelectChange;

@property (nonatomic , assign)id<YBSelectPeopleOrganizationViewDelegate> delegate;


-(void)loadDataWithUserArray:(NSArray *)userArray deptArray:(NSArray *)deptArray;

-(void)ybReloadData;

-(void)ybCleanObserver;
@end
